package com.chenlehao.customExceptions;

// 自定义错误枚举类
public enum AppExceptionCodeMsg {

  // 枚举自定义错误类型
  INVALID_CODE(10000, "验证码无效"),
  USERNAME_NOT_EXISTS(10001, "用户名不存在"),
  USER_CREDIT_NOT_ENOUTH(10002, "用户积分不足"),
  NOT_LOGIN(9999,"用户未登录")
  ;

  private int code;
  private String msg;

  public int getCode() {
    return code;
  }

  public String getMsg() {
    return msg;
  }


  AppExceptionCodeMsg(int code, String msg) {
    this.code = code;
    this.msg = msg;
  }
}